home *** CD-ROM | disk | FTP | other *** search
/ Mac Mania 6 / MacMania 6.toast / / Tools&Utilities / TouchMe 1.2□ / touchMe 1.2 Folder / touchMe source codes / Guide source / Content < prev    next >
Encoding:
Text File  |  1997-04-25  |  18.4 KB  |  553 lines  |  [TEXT/ttxt]

  1. ################################
  2. #
  3. #    File:        Content (touchMe Guide)
  4. #
  5. #    Contains:    Guide Script commands that define the content of your guide file.
  6. #
  7. #    Coded by:    Mizutori Tetsuya, January 23, 1997, February 10, 1997.
  8. #    Modified:    April 24, 1997.
  9. #    Copyright:    ©1997 by Mizutori Tetsuya
  10. #
  11. ################################
  12.  
  13. ################################
  14. #    How To Use This File
  15. ################################
  16. # This file will contain the actual text that appears on your guide
  17. # file's panels.  (As your guide file grows, it may be helpful to break
  18. # this file into several smaller files).
  19.  
  20. # This file is part a set of files that you will compile to create your
  21. # guide file.  You will also need:
  22. #
  23. # • Build File       - a file that points to all of the related source
  24. #                      files that define your guide file.
  25. #
  26. # • Standard Setup   - a file that contains the Guide Script commands
  27. #                      needed to setup a guide file that follows the
  28. #                      Apple Guide HI guidelines.
  29. #
  30. # To use this file:
  31. #
  32. #  1.  Edit this file to define the content of your guide file.
  33. #
  34. #  2.  The "Build File" already points to the "Standard Setup" and "Content"
  35. #      files.  If you break your content into several smaller files,
  36. #      you must add <Include> commands to also point to them.
  37. #
  38. #  3.  Use the Guide Maker Build utility to compile the "Build file".
  39.  
  40.  
  41. ################################
  42. #    Setup guide frame
  43. ################################
  44. # Substitute these settings which are defined in "Standard Setup" file.
  45.  
  46. #<Help Menu> "touchMe Guide", ABOUT
  47. <Help Menu> "touchMe Guide", HELP
  48.  
  49. <Balloon Menu Text> "Displays information and instructions you can use while working in the touchMe application."
  50.  
  51. <App Creator> 'MzTm'
  52.  
  53. <VERSION>    "touchMe Guide 1.2 ©1997 Mizutori Tetsuya", "1.2"
  54. <App Text> " touchMe 1.2"
  55.  
  56. #<Startup Window> PRESENTATION, "My Sequence"
  57. <Startup Window> SINGLE, TOPICS
  58.  
  59. <Min Height> 150
  60. #<Max Height> 400
  61.  
  62. #<Define Format>    "Full", Column(6,11,330), "Espy Serif", 10, PLAIN, , Left, false
  63. <Define Format>    "Heading", Column(6,11,330), "Espy Serif", 10, BOLD, BLUE, Left, false
  64. <Define Format>    "Text", Column(24,11,330), "Espy Serif", 10, PLAIN, , Left, false
  65. <Define Format>    "Coding", Column(24,11,330), "Geneva", 10, PLAIN, , Left, false
  66. <Define Transparent Format>    "Profile", Column(24,200,330), "Espy Serif", 10, PLAIN, , Left, false
  67. #<Define Transparent Format>    "Profile", Column(100,200,330), "Espy Serif", 10, PLAIN, , Left, false
  68.  
  69.  
  70. ################################
  71. #    Sequence Definitions
  72. ################################
  73.  
  74. <Define Sequence> "Seq About", "About touchMe..."
  75.     <Panel> "Panel About"
  76. <End Sequence>
  77.  
  78. <Define Sequence> "Seq WhyNeeded", "Why is touchMe needed?"
  79.     <Panel> "Panel WhyNeeded 1"
  80.     <Panel> "Panel WhyNeeded 2"
  81.     <Panel> "Panel WhyNeeded 3"
  82. <End Sequence>
  83.  
  84. <Define Sequence> "Seq HowToUse", "How do you use it?"
  85.     <Panel> "Panel HowToUse 1"
  86.     <Panel> "Panel HowToUse 2"
  87. <End Sequence>
  88.  
  89. <Define Sequence> "Seq Switches", "How do the switches work?"
  90.     <Panel> "Panel Switches Current"
  91.     <Panel> "Panel Switches Exact"
  92.     <Panel> "Panel Switches Exact 1"
  93.     <Panel> "Panel Switches Exact 2"
  94.     <Panel> "Panel Switches Exact 3"
  95.     <Panel> "Panel Switches Exact 4"
  96.     <Panel> "Panel Switches Fetch 1"
  97.     <Panel> "Panel Switches Fetch 2"
  98. <End Sequence>
  99.  
  100. <Define Sequence> "Seq AsCommand", "AppleScript commands"
  101.     <Panel> "Panel AsCommand"
  102. <End Sequence>
  103.  
  104. <Define Sequence> "Seq AsClass", "AppleScript classes"
  105.     <Panel> "Panel AsClass"
  106. <End Sequence>
  107.  
  108. <Define Sequence> "Seq AsExample", "AppleScript example"
  109.     <Panel> "Panel AsExample"
  110. <End Sequence>
  111.  
  112. <Define Sequence> "Seq WhatsNew", "What’s new in this version"
  113.     <Panel> "Panel version 12"
  114. <End Sequence>
  115.  
  116. <Define Sequence> "Seq Changes", "Changes in previous versions"
  117.     <Panel> "Panel version 112"
  118.     <Panel> "Panel version 111"
  119.     <Panel> "Panel version Orginal"
  120. <End Sequence>
  121.  
  122. <Define Sequence> "Seq Package", "The package includes..."
  123.     <Panel> "Panel Package"
  124. <End Sequence>
  125.  
  126. <Define Sequence> "Seq Distribution", "How to contact the author"
  127.     <Panel> "Panel Distribution"
  128. <End Sequence>
  129.  
  130. <Define Sequence> "Seq Author", "About the author"
  131.     <Panel> "Panel Author"
  132. <End Sequence>
  133.  
  134.  
  135. ################################
  136. #    Topic Area Definitions
  137. ################################
  138.  
  139. <Topic Area> "My Topic Area"
  140. <Header> "About"
  141. <Topic> "About the touchMe", "Seq About"
  142. <Topic> "Why is touchMe needed?", "Seq WhyNeeded"
  143.  
  144. <Header> "Usage"
  145. <Topic> "How do you use it?", "Seq HowToUse"
  146. <Topic> "How do the switches work?", "Seq Switches"
  147.  
  148. <Header> "AppleScript"
  149. <Topic> "Commands", "Seq AsCommand"
  150. <Topic> "Classes", "Seq AsClass"
  151. <Topic> "Example", "Seq AsExample"
  152.  
  153. <Header> "Revision History"
  154. <Topic> "What’s new in this version", "Seq WhatsNew"
  155. <Topic> "Changes in previous versions", "Seq Changes"
  156.  
  157. <Header> "Package"
  158. <Topic> "What’s included in...", "Seq Package"
  159.  
  160. <Header> "Information"
  161. <Topic> "How to contact the author", "Seq Distribution"
  162. <Topic> "About the author", "Seq Author"
  163.  
  164.  
  165. ################################
  166. #    Index Term Definitions
  167. ################################
  168.  
  169. #<Index> "Sequence"
  170. #<Header> "How do I..."
  171. #<Topic> "define a sequence?", "How do I define a sequence?"
  172.  
  173.  
  174. ################################
  175. #    Panel Definitions
  176. ################################
  177.  
  178. ########
  179. # Panel "About the touchMe program"
  180. ########
  181. <Define Panel> "Panel About"
  182. <Format> "Heading"
  183. touchMe 1.2 (April 25, 1997)
  184.  
  185. <Format> "Text"
  186. Copyright © 1994-1997 Mizutori Tetsuya
  187. This program is freeware.
  188.  
  189. This is an application program to update the creation and/or modification date time stamp on Macintosh files or folders. It is like Unix command “touch”.
  190.  
  191.      To run the program, it requires System 7.1 or later. Under System 7.5, touchMe is also AppleScriptable and allows the drag and drop operations. The program is written under the Metrowerks’ C++ application framework of PowerPlant.
  192. <End Panel>
  193.  
  194.  
  195. ########
  196. # Panel "Why is touchMe needed?"
  197. ########
  198. <Define Panel> "Panel WhyNeeded 1"
  199. <Format> "Heading"
  200. Why is needed to touch
  201.  
  202. <Format> "Text"
  203. I have been using this program for these years in private to update the right date time stamps on the archive files that I have downloaded. The reason I want to change the date time stamp is that the archive files can have the correct date time corresponding to their original files.
  204.  
  205.      There may be a way to do this with ResEdit, but using touchMe is more practical.
  206.  <End Panel>
  207.  
  208.  
  209. <Define Panel> "Panel WhyNeeded 2"
  210. <Format> "Heading"
  211. CASE 1
  212.  
  213. <Format> "Text"
  214.      If both archive file and original file are residing in the same folder.
  215.  
  216.      To update the date time stamp on the archive file by the original one, select both files, but the original file be first, then drag and drop them onto the touchMe application icon (or window area).
  217. <End Panel>
  218.  
  219.  
  220. <Define Panel> "Panel WhyNeeded 3"
  221. <Format> "Heading"
  222. CASE 2
  223.  
  224. <Format> "Text"
  225.      If these files are located in the different folders or volumes.
  226.  
  227.      touchMe will also provide you with a nice tip to update the date time stamp. First, open the touchMe application to fill in its date time columns by the date time stamp on the original file. Next, select the other archive file and drop it onto the touchMe application icon (or window area).
  228. <End Panel>
  229.  
  230.  
  231. ########
  232. # Panel "How do you use it?"
  233. ########
  234. <Define Panel> "Panel HowToUse 1"
  235. <Format> "Heading"
  236. First Step
  237.  
  238. <Format> "Text"
  239. First of all, you should setup the optional switches of the touchMe program, which are listed below;
  240.  [x] Update the creation / modification date
  241.   • by the current date time
  242.   • to [exact date time]
  243.   • by the first item you selected
  244.   • by the first, and fill in columns
  245.  
  246. These settings are automatically stored to the touchMe preferences file when you quit by the “OK” button.
  247. <End Panel>
  248.  
  249.  
  250. <Define Panel> "Panel HowToUse 2"
  251. <Format> "Heading"
  252. Second Step
  253.  
  254. <Format> "Text"
  255.      Second, select and drop the files or folders onto the touchMe application icon. Under System 7.5 running, you can also drag and drop them onto the touchMe window area (which will indicate it by hiliting the border of the window). Then all the files you selected will have the same date time stamp, which you can confirm by Finder’s “Get Info” command.
  256.  
  257. TIPS:
  258. With the shift-key pressed during the operation, it will open Get Info for the selected items.
  259. <End Panel>
  260.  
  261.  
  262. ########
  263. # Panel "How do the switches work?"
  264. ########
  265. <Define Panel> "Panel Switches Current"
  266. <Format> "Heading"
  267.  • by the current date time
  268.  
  269. <Format> "Text"
  270.      All the date time stamp on the files or folders that you selected are set to the same value, which takes the current date time.
  271. <End Panel>
  272.  
  273.  
  274. <Define Panel> "Panel Switches Exact"
  275. <Format> "Heading"
  276. • to [exact date time]
  277.  
  278. <Format> "Text"
  279.      Enter the date time, like as “8/1/96” or “August 1, 1996” for date and “12:34:56” for time. There are four ways to fill in the date time columns as follows.
  280. <End Panel>
  281.  
  282.  
  283. <Define Panel> "Panel Switches Exact 1"
  284. #<Format> "Heading"
  285. #Exact date time (1)
  286. #
  287. <Format> "Text"
  288.      1) Hold down the control-key (or option-key) when you select the “Open...” menu command.
  289.  
  290.      This mode will be indicated by showing a tiny mark at the top-left corner of the window. Then the date time stamp is fetched from the selected file or folder, and it will be put in the columns.
  291.  
  292. <PICT> 2000, CENTER
  293. <End Panel>
  294.  
  295.  
  296. <Define Panel> "Panel Switches Exact 2"
  297. #<Format> "Heading"
  298. #Exact date time (2)
  299. #
  300. <Format> "Text"
  301.      2) Type in the date time strings.
  302.  
  303.      Please be careful to write them in a right date time format. If your system is 7.5 or later, you are allowed to drag and drop the date time string to fill in the columns. As a general rule, it will be cut if you drop the text string onto the Finder’s trash icon.
  304.  
  305. <PICT> 2002, CENTER
  306. <End Panel>
  307.  
  308.  
  309. <Define Panel> "Panel Switches Exact 3"
  310. #<Format> "Heading"
  311. #Exact date time (3)
  312. #
  313. <Format> "Text"
  314.      3) Press the small button at the top-right corner on each column to setup the present time.
  315.  
  316.      With the option-key pressed, the time part of the column will be cleared to zero, that means a midnight.
  317. <End Panel>
  318.  
  319.  
  320. <Define Panel> "Panel Switches Exact 4"
  321. #<Format> "Heading"
  322. #Exact date time (4)
  323. #
  324. <Format> "Text"
  325.      4) Under System 7.5, hold down the command-key (or option-key) while you drag the file (or folder) and drop it on the touchMe window area.
  326.  
  327.      When the dragged item has entered in the window area, all the columns are hilited to indicate that they are accepting the file to fetch its date time stamp. In particular, you can fill in each column separately by dragging it on a particular column.
  328.  
  329. <PICT> 2004, CENTER
  330. <End Panel>
  331.  
  332.  
  333. <Define Panel> "Panel Switches Fetch 1"
  334. <Format> "Heading"
  335. • by the first item you selected 
  336.  
  337. <Format> "Text"
  338.      touchMe can fetch the date time stamp from the ‘first’ item among the files (or folders) you selected. Well, what does it mean the ‘first’? It may vary on the conditions by which view you open the Finder’s folder.
  339.  
  340.      1) View by Small Icon or Icon: The first item is the one you have selected first. You may choose additional files or folders as the followers by clicking them with the shift-key.
  341.  
  342.      2) View by Name, Size, Kind or Date: The first item is the one which is listed at the topmost position in the listings. The order may not be changed even if you choose the items at random by selecting with the shift-key.
  343. <End Panel>
  344.  
  345.  
  346.  <Define Panel> "Panel Switches Fetch 2"
  347. <Format> "Heading"
  348. • by the first, and fill in columns
  349.  
  350. <Format> "Text"
  351.      It works like above, but additionally fills in the date time columns by the first item you selected. 
  352. <End Panel>
  353.  
  354.  
  355. ########
  356. # Panel "AppleScript commands"
  357. ########
  358.  
  359. <Define Panel> "Panel AsCommand"
  360. #<Format> "Heading"
  361. #AppleScript commands
  362.  
  363. <Format> "Coding"
  364. Required Suite:
  365.     open  alias   -- touch the items
  366.     print  alias  -- (do nothing)
  367.     run     -- Sent to an application when it is double-clicked
  368.     quit    -- Quit application
  369.  
  370. touchMe Suite:
  371.  get prefs creation/modification -- get the current settings
  372.    Result:   prefs  -- list of current settings
  373.  set prefs creation/modification to prefs -- set the new settings
  374.  load prefs  -- load the settings from the preferences file
  375.  save prefs  -- save the settings to the preferences file
  376.  touch  alias  -- touch the items
  377.  fetch  alias  -- fetch the item, and set the date time settings
  378.    Result:  time stamp -- list of creation and modification date time
  379. <End Panel>
  380.  
  381.  
  382. <Define Panel> "Panel AsClass"
  383. #<Format> "Heading"
  384. #AppleScript classes
  385.  
  386. <Format> "Coding"
  387. Class prefs: Settings information
  388. Properties:
  389.  enabled  true/false
  390.  flag  current/exact/firstone/firstset
  391.  value  date value
  392.  
  393. Class time stamp: creation and modification date time
  394. Properties:
  395.  creation date  date value
  396.  modification date  date value
  397. <End Panel>
  398.  
  399.  
  400. <Define Panel> "Panel AsExample"
  401. #<Format> "Heading"
  402. #AppleScript example
  403.  
  404. <Format> "Coding"
  405. Example: A droplet to change the creation date to the current date, and the modification date according to the first file
  406.  
  407. on open (docList)
  408.   tell application "touchMe"
  409.     set theDate to current date
  410.     set xDate to date "8/1/96 12:34:56"
  411.     set prefs creation to {enabled:true, flag:exact, value:theDate}
  412.     set prefs modification to {enabled:true, flag:firstone}
  413.     touch docList
  414.     quit
  415.   end tell
  416. end open
  417. <End Panel>
  418.  
  419.  
  420. ########
  421. # Panel "Revision history"
  422. ########
  423. <Define Panel> "Panel version 12"
  424. <Format> "Heading"
  425. • v.1.2, published on April 25, 1997
  426.  
  427. <Format> "Text"
  428. #• v.1.2, published on April 25, 1997
  429.  - New. The modifier-key operation was changed. To touch the files, just put them onto the application icon or the touchMe window. To fill in the date time columns, please drag and drop the file or folder over the columns with the command-key pressed.
  430.  - Bug. It sometimes failed to hilite the border of touchMe window when you drag the files with command-key pressed. Fixed for sure!
  431.  - New. The text strings can be put shortly in the date time columns even if you do not hold down the command-key or option-key.
  432.  - Bug. The indicator (*) for holding modifier keys was flickering unsteadily on the top-left corner of the window. Fixed.
  433.  - New. Corrected the right captions of check boxes and radio buttons for the readability.
  434.  - New. The design of the Apple Guide file was improved. It now starts to open the topics list window, instead of browing every panel in sequence from the first. The previous version of the styled help board was discontinued.
  435.  - New. The software is now constructed from a bunch of reusable codes, which forms a class library common to my “puriTEXT” program.
  436. <End Panel>
  437.  
  438.  
  439. <Define Panel> "Panel version 112"
  440. <Format> "Heading"
  441. • v.1.1.2, published on February 10, 1997
  442.  
  443. <Format> "Text"
  444. #• v.1.1.2, published on February 10, 1997
  445.  - New. You can now use a drag operation on the text string to fill in the date time columns.
  446.  - New. For AppleScript commands “touch” and “fetch”, they are now accepting both a single file or a list of files equally.
  447.  - New. With the option-key pressed, the Set-Present-Time button will clear the time part of the columns, so that a midnight time will be entered.
  448.  - Bug. It sometimes failed to hilite the border of touchMe window when you drag the files with the option-key pressed. Fixed it, I hope.
  449.  - New. The C++ compiler was changed to CW11 from CW9 of CodeWarrior PowerPlant. Due to the changes on LApplication class, I have to update my CHelpMenu class to enable the “Help touchMe” item of the help menu.
  450.  - New. Added an Apple Guide file. I hope this guide file will be of much help to you.
  451. <End Panel>
  452.  
  453.  
  454. <Define Panel> "Panel version 111"
  455. <Format> "Heading"
  456. • v.1.1.1, published on August 8, 1996
  457.  
  458. <Format> "Text"
  459. #• v.1.1.1, published on  August 8, 1996
  460.  - New. During a drag and drop operation with the option-key pressed, the command “touch” and “fetch” are exchanged temporarily with each other.
  461.  - New. All the date time columns are now sensitive to accept the dragging files separately.
  462.  - New. It remembers the last position of the window on quit by the “Cancel” button as well as “OK”.
  463.  - Bug. A well-known (but, I didn’t know:-) MacOS bug on using the colored alert boxes is fixed. Thanks to Rokkaku Fumio who pointed out this problem with a nice solution.
  464.  - New. Enabled the “Close Box” in the window title that works as the “Cancel” button, and also enabled the help menu item which will appear in the desktop menu bar.
  465.  - New. Added many practical samples for AppleScript scripting works.
  466.  - Bug. Corrected a typo, a wrong file name for “touchMe Prefs”.;-)
  467.  - Special thanks to Jim van Zee who has always encouraged me in this project and made many cool suggestions to work around the problems.
  468. <End Panel>
  469.  
  470.  
  471. <Define Panel> "Panel version Orginal"
  472. <Format> "Heading"
  473. Original versions
  474.  
  475. <Format> "Text"
  476. • v.1.1, published on August 1, 1996
  477.      All the programs were rewritten for the Metrowerks’ C++ application framework PowerPlant of CodeWarrior CW9. And many new features are implemented.
  478.      This is the first release of the renewal version.
  479.  
  480. • v.1.0, published on March 9, 1994
  481.      The first version of the program, originally written in Symantec’s THINK-C.
  482. <End Panel>
  483.  
  484.  
  485. ########
  486. # Panel "The package includes..."
  487. ########
  488. <Define Panel> "Panel Package"
  489. <Format> "Heading"
  490. In this package,
  491.  
  492. <Format> "Text"
  493.    1. touchMe              -- application programs for 68K and PowerPC
  494.    2. touchMe Guide    -- an Apple Guide file
  495.    3. touchMe readme  -- just this file you are reading
  496.    4. touchMe scripts  -- sample AppleScript code using with touchMe
  497.    5. touchMe source   -- source code in CodeWarrior 11 PowerPlant
  498.    6. touchMe Guide source   -- source code of Apple Guide file
  499.    7. Apple Guide SharedLibs  -- for PowerMacs without Apple Guide
  500.  
  501. This is a freeware program. You can distribute it without any limitations nor permissions.
  502. <End Panel>
  503.  
  504.  
  505. ########
  506. # Panel "Distribution"
  507. ########
  508. <Define Panel> "Panel Distribution"
  509. <Format> "Heading"
  510. Bug reports and Distribution
  511.  
  512. <Format> "Text"
  513. If you have any questions, remarks or problems, please feel free to contact me via e-mail;
  514.      mailto:mizutori@po.iijnet.or.jp
  515.      mailto:mizutori@ai.rcast.u-tokyo.ac.jp
  516.  
  517. The latest versions of my software are available at my following WWW page;
  518.      http://www.bekkoame.or.jp/~mizutori/software/catalog.html
  519. <End Panel>
  520.  
  521.  
  522. ########
  523. # Panel "About the Author"
  524. ########
  525. <Define Panel> "Panel Author"
  526. <Format> "Heading"
  527. Today’s words
  528.  
  529. <Format> "Text"
  530.     Time n.
  531.     A nonspatial continuum 
  532.     in which events occur in 
  533.     apparently irreversible 
  534.     succession from the past 
  535.     through the present to 
  536.     the future. 
  537.     [from QuickTime 
  538.               by Apple Computer]
  539.  
  540.  
  541.  
  542. Author:
  543. Mizutori Tetsuya, Tokyo, Japan
  544. mizutori@po.iijnet.or.jp
  545. <Format> "Profile"
  546. <PICT> 2008, CENTER
  547. <End Panel>
  548.  
  549.  
  550. ########
  551. # end of script
  552. ########
  553.